<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="head.html"/>
</head>
<body>
	<div id="head"><h1>Notenarchivsystem</h1></div>
	<jsp:include page="menu.html"/>
	<div id="content">
		<h2><c:out value="${title}"/></h2>
		<p><c:out value="${message}"/></p>
		<table class="listing">
			<colgroup>
				<col class="buttoncell"/>
				<col class="buttoncell"/>
				<col/>
				<col/>
			</colgroup>
				<tbody>
					<tr>
						<th>Titel</th>
						<th>Untertitel</th>
						<th>Komponist</th>
						<th>Verlag</th>
						<th>Kategorie</th>
					</tr>
					<tr>
						<td><input type="hidden" name="musikstueckid" value='<c:out value="${musikstueck.id}"/>'/><c:out value="${musikstueck.titel}"/></td>
						<td><c:out value="${musikstueck.untertitel}"/></td>
						<td><c:out value="${musikstueck.komponist}"/></td>
						<td><c:out value="${musikstueck.verlag}"/></td>
						<td><c:out value="${musikstueck.kategorie.kategoriebezeichnung}"/></td>
					</tr>
			</table>
			<br>
			<table class="listing">
					<tr>
						<td></td>
						<td></td>
						<td></td>
						<th>Stimme:</th>
					</tr>
					<c:forEach items="${notenlist}" var="noten">
						<tr>	
							<td>
								<a href="EditPersonHatNoten.s?notenid=<c:out value="${noten.id}"/>">
									<img src="images/button_list.png" alt="Icon - Noten ausleihen"/>
								</a>
							</td>
							<td>
								<a href="EditNoten.s?musikstueckid=<c:out value="${musikstueck.id}"/>&id=<c:out value="${noten.id}"/>">
									<img src="images/button_edit.png" alt="Icon - Bearbeite Noten"/>
								</a>
							</td>
							<td>
								<a href="DeleteNoten.s?musikstueckid=<c:out value="${musikstueck.id}"/>&id=<c:out value="${noten.id}"/>">
									<img src="images/button_drop.png" alt="Icon - Lösche Noten"/>
								</a>
							</td>
							<td><c:out value="${noten.stimme.stimmenbezeichnung}"/></td>
						</tr>
					</c:forEach>
					<tr>
						<td>
							<a href="EditNoten.s?musikstueckid=<c:out value="${musikstueck.id}"/>">
								<img src="images/button_add.png" alt="Icon - Neue Noten anlegen"/>
							</a>
						</td>
					</tr>
				</tbody>
			</table>
	</div>
</body>
</html>  